"use strict";

module.exports = {
  async up(queryInterface, Sequelize) {
    // 插入初始数据
    await queryInterface.bulkInsert("users", [
      {
        id: 1,
        userName: "admin",
        password: "123456",
        nickName: "Administrator",
        email: "admin@example.com",
        createdAt: new Date(),
        updatedAt: new Date(),
      },
    ]);
  },

  async down(queryInterface, Sequelize) {
    // 删除插入的数据
    await queryInterface.bulkDelete("users", { id: 1 });
  },
};
